Move over optional arguments in parentheses correctly
authorArash Esbati <arash@gnu.org>
Tue, 9 Apr 2024 12:08:17 +0000 (14:08 +0200)
committerArash Esbati <arash@gnu.org>
Tue, 9 Apr 2024 12:08:17 +0000 (14:08 +0200)
commit7236010d2e1d3525943bb50598d29061a4c25b58
tree451917b84aa070c02c0fb6ba96037aea3d33f303
parentcda5155c618d774810ce5e044efe1101846054ac
Move over optional arguments in parentheses correctly

* lisp/textmodes/reftex-parse.el (reftex-move-to-previous-arg):
Recognize ')' as closing delimiter for optional argument.
Fix docstring.
(reftex-what-macro): Identify LaTeX macros with optional arguments
in parentheses correctly.  This is necessary to make
`reftex-view-crossref' work with biblatex on entries like:
\parencites(Glob.Pre)(Glob.Post)[Pre][Post]{key1}[Pre][Post]{key2}
(bug#31132)
lisp/textmodes/reftex-parse.el